<?php
	function getRatedArticles($idevent){
		$c = connect();
		$r = mysql_query("SELECT * FROM 
			(SELECT * FROM submissions JOIN articles 
			ON idarticles = articles_idarticles ) AS t 
			WHERE events_idevents = ".$idevent);
		$articles = array();
		while($row = mysql_fetch_assoc($r)){
			array_push($articles, $row);
		}
		return $articles;
	}

?>
